package org.finjic.entity;

import org.finjic.type.ArgumentType;

/**
 * User: Taras Date: 18.11.12 Time: 21:26
 */
public class ConstructorArg extends Argument {
    private int index = -1;
    private String name;

    public ConstructorArg(Argument arg) {
        this(arg.getType(), arg.getValue());
    }

    public ConstructorArg(ArgumentType type, Object value) {
        super(type, value);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
